package net.crisps.cloud.utils.robot_util.service.default_config;

import lombok.extern.slf4j.Slf4j;
import net.crisps.framework.tac.base.exception.AbstractCrispsException;
import org.springframework.boot.autoconfigure.condition.ConditionalOnClass;
import org.springframework.stereotype.Component;

import java.util.Collection;
import java.util.Collections;

/**
 * @author tangchuan
 * @date 2023/11/18 18:23
 */
@Slf4j
@Component
@ConditionalOnClass(AbstractCrispsException.class)
public class DefaultExceptionIgnoreService {

    public Collection<Class<? extends Exception>> getDefaultExceptionIgnoreList() {
        return Collections.singletonList(AbstractCrispsException.class);
    }

}
